<script src="./utils.js"></script>

<script>

let javaData = '{"errcode":0 , "errmsg":"ok"}'
let objData = {errcode:0 , errmsg:"ok"}

console.log(parse(javaData));           // {errcode:0 , errmsg:"ok"}

console.log(stringify(objData));        // '{"errcode":0 , "errmsg":"ok"}'

</script>